
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-youshuangyinhao"></use>
                    </svg>
                    <div class="name">右双引号</div>
                    <div class="fontclass">.icon-youshuangyinhao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouyeyinhao"></use>
                    </svg>
                    <div class="name">首页-引号</div>
                    <div class="fontclass">.icon-shouyeyinhao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aaa"></use>
                    </svg>
                    <div class="name">aaa</div>
                    <div class="fontclass">.icon-aaa</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bbb"></use>
                    </svg>
                    <div class="name">bbb</div>
                    <div class="fontclass">.icon-bbb</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ccc"></use>
                    </svg>
                    <div class="name">c c c</div>
                    <div class="fontclass">.icon-ccc</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shangjiantouicon"></use>
                    </svg>
                    <div class="name">上箭头icon</div>
                    <div class="fontclass">.icon-shangjiantouicon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iphone"></use>
                    </svg>
                    <div class="name">iphone</div>
                    <div class="fontclass">.icon-iphone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-knock"></use>
                    </svg>
                    <div class="name">knock</div>
                    <div class="fontclass">.icon-knock</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tel"></use>
                    </svg>
                    <div class="name">tel</div>
                    <div class="fontclass">.icon-tel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon02"></use>
                    </svg>
                    <div class="name">爱飞单icon-02</div>
                    <div class="fontclass">.icon-aifeidanicon02</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon03"></use>
                    </svg>
                    <div class="name">爱飞单icon-03</div>
                    <div class="fontclass">.icon-aifeidanicon03</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon04"></use>
                    </svg>
                    <div class="name">爱飞单icon-04</div>
                    <div class="fontclass">.icon-aifeidanicon04</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon05"></use>
                    </svg>
                    <div class="name">爱飞单icon-05</div>
                    <div class="fontclass">.icon-aifeidanicon05</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon06"></use>
                    </svg>
                    <div class="name">爱飞单icon-06</div>
                    <div class="fontclass">.icon-aifeidanicon06</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon07"></use>
                    </svg>
                    <div class="name">爱飞单icon-07</div>
                    <div class="fontclass">.icon-aifeidanicon07</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon08"></use>
                    </svg>
                    <div class="name">爱飞单icon-08</div>
                    <div class="fontclass">.icon-aifeidanicon08</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon09"></use>
                    </svg>
                    <div class="name">爱飞单icon-09</div>
                    <div class="fontclass">.icon-aifeidanicon09</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon10"></use>
                    </svg>
                    <div class="name">爱飞单icon-10</div>
                    <div class="fontclass">.icon-aifeidanicon10</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon11"></use>
                    </svg>
                    <div class="name">爱飞单icon-11</div>
                    <div class="fontclass">.icon-aifeidanicon11</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon12"></use>
                    </svg>
                    <div class="name">爱飞单icon-12</div>
                    <div class="fontclass">.icon-aifeidanicon12</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon13"></use>
                    </svg>
                    <div class="name">爱飞单icon-13</div>
                    <div class="fontclass">.icon-aifeidanicon13</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon14"></use>
                    </svg>
                    <div class="name">爱飞单icon-14</div>
                    <div class="fontclass">.icon-aifeidanicon14</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon15"></use>
                    </svg>
                    <div class="name">爱飞单icon-15</div>
                    <div class="fontclass">.icon-aifeidanicon15</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon16"></use>
                    </svg>
                    <div class="name">爱飞单icon-16</div>
                    <div class="fontclass">.icon-aifeidanicon16</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon17"></use>
                    </svg>
                    <div class="name">爱飞单icon-17</div>
                    <div class="fontclass">.icon-aifeidanicon17</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon18"></use>
                    </svg>
                    <div class="name">爱飞单icon-18</div>
                    <div class="fontclass">.icon-aifeidanicon18</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon19"></use>
                    </svg>
                    <div class="name">爱飞单icon-19</div>
                    <div class="fontclass">.icon-aifeidanicon19</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon20"></use>
                    </svg>
                    <div class="name">爱飞单icon-20</div>
                    <div class="fontclass">.icon-aifeidanicon20</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon21"></use>
                    </svg>
                    <div class="name">爱飞单icon-21</div>
                    <div class="fontclass">.icon-aifeidanicon21</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon22"></use>
                    </svg>
                    <div class="name">爱飞单icon-22</div>
                    <div class="fontclass">.icon-aifeidanicon22</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon23"></use>
                    </svg>
                    <div class="name">爱飞单icon-23</div>
                    <div class="fontclass">.icon-aifeidanicon23</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon24"></use>
                    </svg>
                    <div class="name">爱飞单icon-24</div>
                    <div class="fontclass">.icon-aifeidanicon24</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon25"></use>
                    </svg>
                    <div class="name">爱飞单icon-25</div>
                    <div class="fontclass">.icon-aifeidanicon25</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon26"></use>
                    </svg>
                    <div class="name">爱飞单icon-26</div>
                    <div class="fontclass">.icon-aifeidanicon26</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon27"></use>
                    </svg>
                    <div class="name">爱飞单icon-27</div>
                    <div class="fontclass">.icon-aifeidanicon27</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon28"></use>
                    </svg>
                    <div class="name">爱飞单icon-28</div>
                    <div class="fontclass">.icon-aifeidanicon28</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon29"></use>
                    </svg>
                    <div class="name">爱飞单icon-29</div>
                    <div class="fontclass">.icon-aifeidanicon29</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon30"></use>
                    </svg>
                    <div class="name">爱飞单icon-30</div>
                    <div class="fontclass">.icon-aifeidanicon30</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon31"></use>
                    </svg>
                    <div class="name">爱飞单icon-31</div>
                    <div class="fontclass">.icon-aifeidanicon31</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon32"></use>
                    </svg>
                    <div class="name">爱飞单icon-32</div>
                    <div class="fontclass">.icon-aifeidanicon32</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon33"></use>
                    </svg>
                    <div class="name">爱飞单icon-33</div>
                    <div class="fontclass">.icon-aifeidanicon33</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon34"></use>
                    </svg>
                    <div class="name">爱飞单icon-34</div>
                    <div class="fontclass">.icon-aifeidanicon34</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon35"></use>
                    </svg>
                    <div class="name">爱飞单icon-35</div>
                    <div class="fontclass">.icon-aifeidanicon35</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon36"></use>
                    </svg>
                    <div class="name">爱飞单icon-36</div>
                    <div class="fontclass">.icon-aifeidanicon36</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon40"></use>
                    </svg>
                    <div class="name">爱飞单icon-40</div>
                    <div class="fontclass">.icon-aifeidanicon40</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon41"></use>
                    </svg>
                    <div class="name">爱飞单icon-41</div>
                    <div class="fontclass">.icon-aifeidanicon41</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xin1"></use>
                    </svg>
                    <div class="name">xin1</div>
                    <div class="fontclass">.icon-xin1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xin2"></use>
                    </svg>
                    <div class="name">xin2</div>
                    <div class="fontclass">.icon-xin2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xin3"></use>
                    </svg>
                    <div class="name">xin3</div>
                    <div class="fontclass">.icon-xin3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xin4"></use>
                    </svg>
                    <div class="name">xin4</div>
                    <div class="fontclass">.icon-xin4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon401"></use>
                    </svg>
                    <div class="name">爱飞单icon-40</div>
                    <div class="fontclass">.icon-aifeidanicon401</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon411"></use>
                    </svg>
                    <div class="name">爱飞单icon-41</div>
                    <div class="fontclass">.icon-aifeidanicon411</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon42"></use>
                    </svg>
                    <div class="name">爱飞单icon-42</div>
                    <div class="fontclass">.icon-aifeidanicon42</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-aifeidanicon43"></use>
                    </svg>
                    <div class="name">爱飞单icon-43</div>
                    <div class="fontclass">.icon-aifeidanicon43</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-11"></use>
                    </svg>
                    <div class="name">11</div>
                    <div class="fontclass">.icon-11</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-12"></use>
                    </svg>
                    <div class="name">12</div>
                    <div class="fontclass">.icon-12</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
        <blockquote>
        <p>实际情况中"iconfont"（font-family）需要修改为你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
